<div class='fui-page fui-page-current order-detail-page'>
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back btn-back" ng-click="goback();"></a>
        </div>
        <div class="title">订单详情</div>
        <div class="fui-header-right"></div>
    </div>
    <div class='fui-content'>
        <div class="fui-page-title">
            <div class="title c red bold">
				{{pagedata.item.statustitle}}
             </div> 
        </div>
        <div class="fui-cell-group" style="table-layout:fixed;">
            <div class="fui-cell">
                <div class="fui-cell-label">订单编号:</div>
                <div class="fui-cell-info"></div>
                <div class="fui-cell-remark noremark black">{{pagedata.item.order}}</div>
            </div>
            <div class="fui-cell">
                <div class="fui-cell-label">支付状态:</div>
                <div class="fui-cell-info"></div>
				 {{pagedata.item.ispay==0?'未支付':'已支付'}}
            </div>
         </div>  
        <div class="fui-cell-group">
					<div class="fui-list-group-title lineblock">
                            <i class="icon jinyunicon icon-dianpu"></i> {{pagedata.item.hotel.title}}
                            <span class="status noremark" style="color:#f60;">{{pagedata.item.hotel.address}}</span>
                    </div>
					<div class="fui-cell">
                            <div class="fui-cell-label" style="">
                                <img style="height:2rem;width:2rem" ng-src="{{tomedia(pagedata.item.hotel.image) || '../core/resource/images/nopic.jpg'}}">
                            </div>
							<div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">
                                <div class="text goodstitle towline">{{pagedata.item.room.title}}</div>
								<div class="subtitle">{{pagedata.item.num}}间</div>
                            </div>
                     </div>
                     <div class="fui-cell">
							<div class="fui-cell-label">入住人:</div>
							<div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">{{pagedata.item.name}}</div>
					</div>
					<div class="fui-cell">
							<div class="fui-cell-label">入住时间:</div>
							<div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">{{pagedata.item.intime}} ({{pagedata.item.day}}晚)</div>
					</div>
					<div ng-if="pagedata.item.room.is_opentui==1" class="fui-cell">
							<div class="fui-cell-label">退订时间:</div>
							<div class="fui-cell-info"></div>
                            <div class="fui-cell-remark noremark">入驻前{{pagedata.item.room.tui_day}}天，{{pagedata.item.room.tui_time}}点前可退订！</div>
					</div>
        </div>
        <div class="fui-cell-group">
            <div class="fui-cell">
                <div class="fui-cell-label gray">订单小计</div>
                <div class="fui-cell-info"></div>
                <div class="fui-cell-remark noremark black">￥{{pagedata.item.fee}}</div>
            </div>
			<div class="fui-cell-group" style="table-layout:fixed;">			   
					<div class="fui-cell">
						<div class="fui-cell-label">下单时间:</div>
						<div class="fui-cell-info"></div>
						<div class="fui-cell-remark noremark">{{pagedata.item.createtime}}</div>
					</div>	   
			</div>
			<div class="fui-list-group-title lineblock opblock">
							<span class="status noremark">
								<div ng-show="pagedata.item.ispay == 1 && pagedata.item.status == 0" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'/manage.order_list/queren/','id='+pagedata.item.id,'','确定要确认预定？')">确认预定</div>
								<div ng-show="pagedata.item.ispay == 1 && (pagedata.item.status == 0 || pagedata.item.status==1)" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'/manage.order_list/receive/','id='+pagedata.item.id,'','确定要帮客户取消预定？')">取消预定</div>
								<div ng-show="pagedata.item.status == 2" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'/manage.order_list/quxiao/','id='+pagedata.item.id,'','确定要同意取消预定？')">同意取消预定</div>
								<div ng-show="pagedata.item.status == 3" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="access_json('/manage.order_list/pay/','id='+pagedata.item.id)">确认退款</div>
								<div ng-show="pagedata.item.status == 1" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'/manage.order_list/ruzhu/','id='+pagedata.item.id,'','确定要确认入住？')">确认入住</div>
								<div ng-show="pagedata.item.status == 1" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'/manage.order_list/tuifang/','id='+pagedata.item.id)">客户退房</div>
							</span>
		</div>
		</div>
	</div>
</div>
